package com.egao.common.module.credits.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author lym
 * @date 2022/1/20 14:49
 */
@Data
@ApiModel(description = "学生学分")
@TableName("credits_student")
public class CreditsStudent implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("学生ID")
    private Integer studentId;

    @ApiModelProperty("项目学分ID")
    private Integer creditsId;

    @ApiModelProperty("学分")
    private BigDecimal credits;

    @ApiModelProperty("添加时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date createTime;

    @ApiModelProperty("是否删除 0否 1是")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty("学生学号")
    @TableField(exist = false)
    private String studentXh;
    @ApiModelProperty("学生姓名")
    @TableField(exist = false)
    private String studentXm;
    @ApiModelProperty("学生学院")
    @TableField(exist = false)
    private String collegeName;
    @ApiModelProperty("学生专业")
    @TableField(exist = false)
    private String majorName;

    @ApiModelProperty("项目学分类型名称")
    @TableField(exist = false)
    private String creditsTypeName;
    @ApiModelProperty("项目学分业务ID")
    @TableField(exist = false)
    private String creditsBusinessId;
    @ApiModelProperty("项目学分业务标题")
    @TableField(exist = false)
    private String creditsTitle;
}
